package com.mybatis.demo.highresultmap;

import java.io.Serializable;
import java.util.List;

public class Blog implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6749769038230090499L;
	
	public Blog(Integer iid){
		this.iid = iid;
	}
	
	private Integer iid;
	
	private String title;
	
	private Integer author_id;
	
	private Author author;
	
	private List<Post> posts;

	public Integer getIid() {
		return iid;
	}

	public void setIid(Integer iid) {
		this.iid = iid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getAuthor_id() {
		return author_id;
	}

	public void setAuthor_id(Integer author_id) {
		this.author_id = author_id;
	}

	public Author getAuthor() {
		return author;
	}

	public void setAuthor(Author author) {
		this.author = author;
	}

	public List<Post> getPosts() {
		return posts;
	}

	public void setPosts(List<Post> posts) {
		this.posts = posts;
	}
	
}
